"""login URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path
from django.conf.urls import url, include

from app.wx_login_auth import views as wx_login_auth_views
from app.dd_login_auth import views as dd_login_auth_views
from app.users import views as user_views

urlpatterns = [
    path('admin/', admin.site.urls),


    # 用户登录
    url(r'^users/', include(('users.urls', 'users'), namespace='users')),

    # 企业微信扫码登录
    url(r'^wx/', include(('wx_login_auth.urls', 'wx_login_auth'), namespace='wx_login_auth')),

    # 钉钉扫码登录
    url(r'^dd/', include(('dd_login_auth.urls', 'dd_login_auth'), namespace='dd_login_auth')),
]
